home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Add-Ons / After Dark / ScreenFlip 1.5 / Source / Fat ScreenFlip / ScreenFlip FAT.r < prev    next >
Encoding:
Text File  |  1995-11-06  |  978 b   |  29 lines  |  [TEXT/R*ch]

  1. #include "MixedMode.r"
  2.  
  3. /*
  4. Use the project ProcInfo.π to determine the correct value for the ProcInfo field below.
  5.  
  6. A single '$' means a hex value.  You can also use the C format of 0x... if you want.
  7. Run ProcInfo.π to prove for yourself that a C routine (kCStackBased) that has no
  8. arguments and returns void has a ProcInfo of $1 or 0x1.
  9. Two dollar signs indicate a rez variable, as in $$Resource.  $$Resource tells rez 
  10. to read the resource fork of a file and return, as a string, the data of a resource 
  11. of a certain type and ID.
  12.  
  13.  
  14. Use type 'MWCW' as 'fdes'; if you want a fat resource.
  15. */
  16.  
  17.  
  18. type 'ADgm' as 'sdes';
  19.  
  20. resource 'ADgm' (0) {
  21.     $3BE0,                                            // 68K ProcInfo
  22.     $3BE0,                                            // PowerPC ProcInfo
  23.     $$Resource("ScreenFlip FAT", 'ADgm', 0),            // Specify filename, type, and ID of resource
  24.                                                     //   containing 68k code
  25.     $$Resource("ScreenFlip PEF", 'ADgm', 0)            // Specify filename, type, and ID of resource
  26.                                                     //   containing a pef container
  27. };
  28.  
  29.